package cz.wql.dao;

import cz.wql.domain.BaseDict;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BaseDictMapper extends Mapper<BaseDict> {
 @Select("SELECT * FROM  base_dict b WHERE  dict_id=#{dict_id}")
  public BaseDict findcustLevelBaseDict(Integer dict_id);

 @Select("SELECT * FROM  base_dict b WHERE  dict_id=#{dict_id}")
 public BaseDict findcustSourceBaseDict(Integer dict_id);

 //添加客户信息 中的两个下拉表
 @Select("select * from  base_dict where dict_type_code=#{dictItemCode}")
 public List<BaseDict>findLevel(String dictItemCode);
 @Select("select * from  base_dict where dict_type_code=#{dictItemCode}")
 public List<BaseDict>findSource(String dictItemCode);
}
